package com.dragon.logical.service.auth;

import com.dragon.repository.entity.Tasks;

public interface TasksService {

    void addSchedule(Tasks tasks);

    /**
     * 暂停任务
     * @param jobName
     * @param jobGroup
     */
    void pauseSchedule(String jobName, String jobGroup);

    /**
     * 暂停触发器
     * @param jobName
     * @param jobGroup
     */
    void pauseTrigger(String jobName, String jobGroup);

    /**
     * 删除触发器
     * @param jobName
     * @param jobGroup
     */
    void deleteTrigger(String jobName, String jobGroup);

    /**
     * 重启定时任务
     * @param jobName
     * @param jobGroup
     */
    void resumeSchedule(String jobName, String jobGroup);

    /**
     * 删除定时任务
     * @param jobName
     * @param jobGroup
     */
    void deleteSchedule(String jobName, String jobGroup);
}
